package com.yilong.wei.app.domain;

import java.io.Serializable;

/**
 * area_data
 * @author 
 */
public class AreaData implements Serializable {
    private String areaCodeId;

    private String parentId;

    private String type;

    private String areaName;

    private static final long serialVersionUID = 1L;

    public String getAreaCodeId() {
        return areaCodeId;
    }

    public void setAreaCodeId(String areaCodeId) {
        this.areaCodeId = areaCodeId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AreaData other = (AreaData) that;
        return (this.getAreaCodeId() == null ? other.getAreaCodeId() == null : this.getAreaCodeId().equals(other.getAreaCodeId()))
            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getAreaName() == null ? other.getAreaName() == null : this.getAreaName().equals(other.getAreaName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAreaCodeId() == null) ? 0 : getAreaCodeId().hashCode());
        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getAreaName() == null) ? 0 : getAreaName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", areaCodeId=").append(areaCodeId);
        sb.append(", parentId=").append(parentId);
        sb.append(", type=").append(type);
        sb.append(", areaName=").append(areaName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}